﻿using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 学生
/// </summary>
[SugarTable("Student","学生")]
[SugarIndex("unique_student_xh", nameof(Student.Xh), OrderByType.Desc, true)]
public class Student  : EntityBase
{
    /// <summary>
    /// 序号
    /// </summary>
    [SugarColumn(ColumnName = "Xuhao", ColumnDescription = "序号", Length = 32)]
    public string? Xuhao { get; set; }
    
    /// <summary>
    /// 学号
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Xh", ColumnDescription = "学号", Length = 32)]
    public string Xh { get; set; }
    
    /// <summary>
    /// 姓名
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Name", ColumnDescription = "姓名", Length = 32)]
    public string Name { get; set; }
    
    /// <summary>
    /// 性别
    /// </summary>
    [SugarColumn(ColumnName = "Sex", ColumnDescription = "性别", Length = 32)]
    public string? Sex { get; set; }

    /// <summary>
    /// 出生日期
    /// </summary>
    [SugarColumn(ColumnName = "Birthday", ColumnDescription = "出生日期")]
    public DateTime? Birthday  { get; set; }

    /// <summary>
    /// 身份证号
    /// </summary>
    [SugarColumn(ColumnName = "IdCardNum", ColumnDescription = "身份证号", Length = 32)]
    public string? IdCardNum { get; set; }
    
    /// <summary>
    /// 全国学籍号
    /// </summary>
    [SugarColumn(ColumnName = "NationalNum", ColumnDescription = "全国学籍号", Length = 32)]
    public string? NationalNum { get; set; }
    
    /// <summary>
    /// 学籍辅号
    /// </summary>
    [SugarColumn(ColumnName = "AssistNum", ColumnDescription = "学籍辅号", Length = 32)]
    public string? AssistNum { get; set; }
    
    /// <summary>
    /// 在校
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "BeAtSchool", ColumnDescription = "在校")]
    public bool BeAtSchool { get; set; }
    
    /// <summary>
    /// 在籍
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "BeAtBook", ColumnDescription = "在籍")]
    public bool BeAtBook { get; set; }
    
    /// <summary>
    /// 托管
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "IsTuoguan", ColumnDescription = "托管")]
    public bool IsTuoguan { get; set; }
    
    /// <summary>
    /// 手机
    /// </summary>
    [SugarColumn(ColumnName = "Tel", ColumnDescription = "手机", Length = 32)]
    public string? Tel { get; set; }

    /// <summary>
    /// 母亲姓名
    /// </summary>
    [SugarColumn(ColumnName = "MotherName", ColumnDescription = "母亲姓名", Length = 32)]
    public string? MotherName { get; set; }

    /// <summary>
    /// 母亲手机
    /// </summary>
    [SugarColumn(ColumnName = "MotherTel", ColumnDescription = "母亲手机", Length = 32)]
    public string? MotherTel { get; set; }

    /// <summary>
    /// 父亲姓名
    /// </summary>
    [SugarColumn(ColumnName = "FatherName", ColumnDescription = "父亲姓名", Length = 32)]
    public string? FatherName { get; set; }

    /// <summary>
    /// 父亲手机
    /// </summary>
    [SugarColumn(ColumnName = "FatherTel", ColumnDescription = "父亲手机", Length = 32)]
    public string? FatherTel { get; set; }

    /// <summary>
    /// 班级
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "BanjiId", ColumnDescription = "班级")]
    public long BanjiId { get; set; }

    /// <summary>
    /// 教学班
    /// </summary>
    [SugarColumn(ColumnName = "JiaoxueBanId", ColumnDescription = "教学班")]
    public long JiaoxueBanId { get; set; }

    /// <summary>
    /// 备注0
    /// </summary>
    [SugarColumn(ColumnName = "Beizhu0", ColumnDescription = "备注0", Length = 200)]
    public string? Beizhu0 { get; set; }
    
    /// <summary>
    /// 备注1
    /// </summary>
    [SugarColumn(ColumnName = "Beizhu1", ColumnDescription = "备注1", Length = 200)]
    public string? Beizhu1 { get; set; }
    
    /// <summary>
    /// 备注2
    /// </summary>
    [SugarColumn(ColumnName = "Beizhu2", ColumnDescription = "备注2", Length = 200)]
    public string? Beizhu2 { get; set; }   
}
